package main

import (
	"go-gin-admin/core"
	"go-gin-admin/global"
	"go-gin-admin/initialize"
)

func main() {
	switch global.GVA_CONFIG.System.DbType {
	case "mysql":
		initialize.Mysql()
	default:
		initialize.Mysql()

	}
	initialize.DBTables()
	// 程序结束关闭数据库连接
	defer global.GVA_DB.Close()
	core.RunWindowsServer()

}
